package com.sinochem.yunlian.ship.api.vo.bs;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class BsInsuranceProductVo implements Serializable{

    private Long id;

    @NotNull(message = "保险公司编码不能为空")
    private Integer companyCode;

    private String companyName;

    @NotNull(message = "查勘代理人不能为空")
    private String surveyAgent;

    @NotNull(message = "主险类型不能为空")
    private Integer insuranceType;

    private String insuranceTypeName;

    @NotNull(message = "保险产品编码不能为空")
    private String insuranceCode;

    @NotNull(message = "费率不能为空")
    private BigDecimal insuranceRate;

    private String description;

    private Integer enableStatus;

    private Integer deleteStatus;

    private Date createTime;

    private Date updateTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Long createBy;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Long updateBy;
}
